From: Stef Walter Date: Wed, 17 Apr 2013 10:02:12 +0000 (+0200) Subject: keyring: Fix button disabled when prompting for confirmation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4223 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=12a1d7b38d9a150d0dea8a0ca8e018a72dd1c5c5;p=gnome-shell.git keyring: Fix button disabled when prompting for confirmation https://bugzilla.gnome.org/show_bug.cgi?id=696304 --- diff --git a/js/ui/components/keyring.js b/js/ui/components/keyring.js index b38888f5a..ae67b5510 100644 --- a/js/ui/components/keyring.js +++ b/js/ui/components/keyring.js @@ -143,8 +143,15 @@ const KeyringDialog = new Lang.Class({ }, _updateSensitivity: function(sensitive) { - this._passwordEntry.reactive = sensitive; - this._passwordEntry.clutter_text.editable = sensitive; + if (this._passwordEntry) { + this._passwordEntry.reactive = sensitive; + this._passwordEntry.clutter_text.editable = sensitive; + } + + if (this._confirmEntry) { + this._confirmEntry.reactive = sensitive; + this._confirmEntry.clutter_text.editable = sensitive; + } this._continueButton.can_focus = sensitive; this._continueButton.reactive = sensitive;